package cn.edu.tju.elm.repository;

import cn.edu.tju.elm.model.entity.Business;
import cn.edu.tju.elm.model.entity.Food;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodRepository extends JpaRepository<Food,Long> {
    List<Food> findAllByBusiness(Business business);
}
